package org.jeecg.modules.manage.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 用户信息
 * @Author: yfkj
 * @Date:   2023-02-07
 * @Version: V1.0
 */
@Data
@ApiModel(value="用户信息对象", description="用户信息")
public class CaishuiUserPage {

	/**id*/
	@ApiModelProperty(value = "id")
	private String id;

	/**创建人*/
	@ApiModelProperty(value = "创建人")
	private String createBy;

	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建日期")
	private Date createTime;

	/**租户ID*/
	@ApiModelProperty(value = "租户ID")
	private Long tenantId;

	/**公司ID*/
	@ApiModelProperty(value = "公司ID")
	private String companyId;

	/**公司名称*/
	@ApiModelProperty(value = "公司名称")
	private String companyName;

	/**用户ID*/
	@ApiModelProperty(value = "用户ID")
	private String userId;

	/**手机号*/
	@ApiModelProperty(value = "手机号")
    private String username;

	/**姓名*/
	@ApiModelProperty(value = "姓名")
    private String realname;

	/**昵称*/
	@ApiModelProperty(value = "昵称")
	private String nickname;

	/**头像*/
	@ApiModelProperty(value = "头像")
    private String avatar;

	/**状态*/
	@ApiModelProperty(value = "状态")
	@Dict(dicCode = "user_status")
	private Integer status;

	/**中台用户角色*/
	@ApiModelProperty(value = "中台用户角色")
	private Integer middleOptAuth;

	/**是否默认：0-否，1-是*/
	@ApiModelProperty(value = "是否默认")
	private Integer isDefault;

	/**多租户id配置*/
	private String relTenantIds;

}
